import axios from '@/api/fetch';
//import * as types from './types';
import SERVER from '@/api/server';

//旧件回运查询
//旧件回运查询 - 主页面查询
export const getListByPage = params => axios.post(`${SERVER.CLAIMDEALER_DEALER}/rPReturn/getListByPage`,  params );

// 选择旧件列表
export const getDestoryListByPage = params => axios.post(`${SERVER.CLAIMDEALER_DEALER}/rPCmsClaim/getDestoryListByPage`,  params );

export const getReturnListByPage = params => axios.post(`${SERVER.CLAIMDEALER_DEALER}/rPCmsClaim/getReturnListByPage`,  params );

//通过ID查
export const selectById = params => axios.get(`${SERVER.CLAIMDEALER_DEALER}/rPReturn/selectById/${params.id}`);

//导出
export const getListForExport = (params) => axios.post(`${SERVER.CLAIMDEALER_DEALER}/rPReturn/getListForExport`, params, {
  responseType: 'blob'
});



